package top.rainbowecho.common.logger;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author rainbow
 * @since 2019/11/24 8:42
 */
@Configuration
public class LoggerConfiguration {
    @Bean
    public Logger logger() {
        return new Logger();
    }

    @Bean
    public LoggerInterceptor loggerInterceptor(Logger logger) {
        return new LoggerInterceptor(logger);
    }
}
